//
//  YKUserDefault.h
//  YK_BaseTools
//
//  Created by edward on 2021/1/7.
//  Copyright © 2021 Edward. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YKUserDefault : NSObject


- (instancetype)init NS_UNAVAILABLE;

/// 设置清理的时候一次性清理掉的缓存
/// @param value 值
/// @param key 键
+ (void)setOnceValue:(id)value forKey:(NSString *)key;

/// 清理时不会对此缓存中的键清理掉
/// @param value 值
/// @param key 键
+ (void)setCacheValue:(id)value forKey:(NSString *)key;

/// 清理一次性的缓存
+ (void)clearAllOnceValue;

/// 清理所有缓存
+ (void)clearAllValue;

/// 获取内容
/// @param key 键
+ (id)getObjectForKey:(NSString *)key;
@end

NS_ASSUME_NONNULL_END
